
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">

		<!-- Section CSS -->
		<!-- jQuery UI (REQUIRED) -->
		<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.css">

		<!-- elFinder CSS (REQUIRED) -->
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/elfinder/css/elfinder.min.css">
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/elfinder/css/theme.css">

		<!-- Section JavaScript -->
		<!-- jQuery and jQuery UI (REQUIRED) -->
		<!--[if lt IE 9]>
		<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
		<![endif]-->
		<!--[if gte IE 9]><!-->
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
		<!--<![endif]-->
		<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.js"></script>

		<!-- elFinder JS (REQUIRED) -->
		<script src="__PUBLIC__/elfinder/js/elfinder.full.js"></script>

		<!-- Extra contents editors (OPTIONAL) -->
		<script src="__PUBLIC__/elfinder/js/extras/editors.default.min.js"></script>

		<!-- GoogleDocs Quicklook plugin for GoogleDrive Volume (OPTIONAL) -->
		<!--<script src="js/extras/quicklook.googledocs.js"></script>-->

		<!-- elFinder initialization (REQUIRED) -->
		<script type="text/javascript" charset="utf-8">
			// Documentation for client options:
			// https://github.com/Studio-42/elFinder/wiki/Client-configuration-options
			$(document).ready(function() {
				var fm = $('#elfinder').elfinder(
					// 1st Arg - options
					{
						cssAutoLoad : false,               // Disable CSS auto loading
						baseUrl : '/Public/elfinder/',                    // Base URL to css/*, js/*
						url : '{:U("Elfinder/connect")}' , // connector URL (REQUIRED)
						lang: 'zh_CN'  ,  // language (OPTIONAL)
                        height : window.innerHeight-107
					},
					// 2nd Arg - before boot up function
					function(fm, extraObj) {
						// `init` event callback function
						fm.bind('init', function() {
							// Optional for Japanese decoder "encoding-japanese.js"
							if (fm.lang === 'ja') {
								fm.loadScript(
									[ '//cdn.rawgit.com/polygonplanet/encoding.js/1.0.26/encoding.min.js' ],
									function() {
										if (window.Encoding && Encoding.convert) {
											fm.registRawStringDecoder(function(s) {
												return Encoding.convert(s, {to:'UNICODE',type:'string'});
											});
										}
									},
									{ loadType: 'tag' }
								);
							}
						});
						// Optional for set document.title dynamically.
						var title = document.title;
						fm.bind('open', function() {
							var path = '',
								cwd  = fm.cwd();
							if (cwd) {
								path = fm.path(cwd.hash) || null;
							}
							document.title = path? path + ':' + title : title;
						}).bind('destroy', function() {
							document.title = title;
						}).bind('get', function() {
                           alert(11);
                        });
					}
				).elfinder('instance');

				//双击打开文件操作
                fm.bind('dblclick', function(e) {
					//获取文件
					var path = fm.path(e.data.file) || null;
					//console.log(path);
                    var ext = path.substring(path.lastIndexOf('.') + 1);
                    //console.log(ext);
					//判断文件后缀名等于IFC
					if(ext == 'ifc'){
                        window.open('/Home/Elfinder/importModel?file='+path);
					    return false;
					}

					if(ext == 'docx' || ext == 'xls' || ext == 'ppt'|| ext == 'doc'|| ext == 'xlsx'|| ext == 'pptx'){

                        window.open('https://view.officeapps.live.com/op/embed.aspx?src=http://doc.jfccc.cn/Public/files/'+path);
                        return false;
					}


                });

                fm.bind('upload', function(e) {
                    $.each(e.data.added,function(k,v){
                        var path = fm.path(v.hash) || null;
                        var ext = path.substring(path.lastIndexOf('.') + 1);
                        if(ext == 'ifc'){
                            $.post('{:U("Elfinder/autoImport")}',{files:path},function(data){
                                console.log(data);
                            });
                            return false;
                        }
					});


				});


			});


		</script>

		<!--https://view.officeapps.live.com/op/embed.aspx?src='+url-->
		<!-- Element where elFinder will be created (REQUIRED) -->
		<div id="elfinder"></div>


